<?php
defined('SEJUJOPEFDNGJSL') or exit('Access denied');

$pagecount=getnums($_GET["pagecount"],$GLOBALARR['pagecount']);
$option=getnums($_GET['option'],1);
$orderby=getnums($_GET['orderby'],1);
$quser=checkstr(trim($_GET['quser']));

$bgtime=checkstr(trim($_GET['bgtime']));
$edtime=checkstr(trim($_GET['edtime']));

$tmp_arr['toption'].='<a href="'.getqueurl('option',1).'" class="'.geteqval(array($option,1,'taselbtn','thabtn')).'">今日新增</a>'
        . '<a href="'.getqueurl('option',2).'" class="'.geteqval(array($option,2,'taselbtn','thabtn')).'">全部</a>'
        . '<a href="'.getqueurl('option',3).'" class="'.geteqval(array($option,3,'taselbtn','thabtn')).'">本金</a>'
        . '<a href="'.getqueurl('option',4).'" class="'.geteqval(array($option,4,'taselbtn','thabtn')).'">利息</a>'
         . '<a href="'.getqueurl('option',7).'" class="'.geteqval(array($option,4,'taselbtn','thabtn')).'">团队收益</a>'
        . '<a href="'.getqueurl('option',5).'" class="'.geteqval(array($option,5,'taselbtn','thabtn')).'">完成</a>'
		. '<a href="'.getqueurl('option',6).'" class="'.geteqval(array($option,6,'taselbtn','thabtn')).'">锁仓中</a>';

$tmp_arr['torderby']='<a href="'.getqueurl('orderby',geteqval(array($orderby,1,'2','1'))).'" class="'.((strstr($orderby,'1')||strstr($orderby,'2'))?"tpaixusel":"tpaixu").'">'.geteqval(array($orderby,1,'时间↓','时间↑')).'</a>';

if(is_array($GLOBALARR['jjname'])){
foreach ($GLOBALARR['jjname'] as $k => $v) {
	$tmp_arr['tcolor'].='<a href="javascript:;" class="theacolor levelcolor'.$k.'">'.$v.'</a>';
}
}

$condition=' where 1=1 ';

if($quser){
	if(strstr($quser,'-')){
		$qdate=explode('-',$quser);
		if($qdate[0]) $condition.=" and from_unixtime(give_help_time,'%Y')=".$qdate[0]."";
		if($qdate[1]) $condition.=" and from_unixtime(give_help_time,'%m')=".$qdate[1]."";
		if($qdate[2]) $condition.=" and from_unixtime(give_help_time,'%d')=".$qdate[2]."";
	}else{
		$qno = substr($quser,1,strlen($quser)-1);
		$queryno = dncorder($qno);
		$condition.=" and (give_help_no like '%".$queryno."%' or uname like '%".$quser."%')";
	}
}
if($bgtime &&$edtime){
	$bgtimes=strtotime($bgtime." 00:00:00");
	$edtimes=strtotime($edtime." 23:59:59");
	$condition.=" and give_help_time <".$edtimes." and give_help_time>".$bgtimes."";

}
if($option==1) $condition.=" and from_unixtime(give_help_time,'%Y-%m-%d')='".date('Y-m-d')."'";
if($option==3) $condition.=' and xf_type=1';
if($option==4) $condition.=' and xf_type=2';
if($option==7) $condition.=' and xf_type=3';
if($option==5) $condition.=' and status=1';
if($option==6) $condition.=' and status=0';

$order='';
if($orderby==1) $order=' order by give_help_time desc';
if($orderby==2) $order=' order by give_help_time asc';


$tmp_arr['tth']='<th>序号</th><th>排单编号</th><th>排单会员</th><th>排单时间</th><th>排单金额</th><th>利息</th><th>状态</th><th>操作</th>';

$psql="select count(0) from ld_give_help $condition";

$db->query($psql,3);
$pcount=$db->fval;
$pagecount=$pagecount;   //每页条数 
$astr="&lsaction=cunklist&pagecount=$pagecount&orderby=$orderby&option=$option&quser=$quser&bgtime=$bgtime&edtime=$edtime";	  //Url
$pagearr=pagelist($pagecount,$pcount,$astr);
$offset=$pagearr[1];

$sql="select * from  ld_give_help $condition $order limit $offset,$pagecount";
$db->query($sql);
$ii=0;

foreach ($db->rs as $k => $v) {
	$help_no = get_help_no('give',$v['uname'],$v['give_help_no']);
	$ii++;
	$serialid=($pagearr[2]-1)*$pagecount+$ii;
	$rm=$member->getuserinfo($v['uname'],true);//此处无用
    if(!$rm['introducer_id']){
    	$db->query("select* from ld_user_account where id=8501",2);
    }else{
    	$db->query("select* from ld_user_account where id=".$rm['introducer_id'],2);
    }
	$ldinfo=$db->rs;

        //取消排单
        if($GLOBALARR["jjcunopen"]==10){
			if($v["matched_amount"]==0&&$v["status"]==0){
				$qxstr='<a href="'.$GLOBALARR['curl'].'&detail=2&uid='.$v['uid'].'&qxid='.$v['id'].'"'.' onclick="return confirm(\'您确定要取消吗?\');" >取消</a>';
			}
        }
        //$v['status'] 0等待对配1等待打款2配对已过期3已取消
	if($rm['is_freezed']==0){
		$realn = "（".$rm['real_name']."）";
	}elseif($rm['is_freezed']==1){
		$realn = "（<span style='color:red;'>".$rm['real_name']."</span>）";
	}
	if($v['status']==0){
		$tai='锁仓中';
	}elseif($v['status']==1){
		$tai="<span style='color:blue;'>完成</span>";
	}else{
		$tai="<span style='color:blue;'>取消排单</span>";
	}
	if($v['is_yuyue']==1){
		 $yystatus="<font color='red'>(预约)</font>";
    }else{
    		$yystatus="";		
		 }
   $qxstr='<a href="'.$GLOBALARR['curl'].'&detail=2&uid='.$v['uid'].'&qxid='.$v['id'].'"'.' onclick="return confirm(\'您确定要取消吗?\');" >取消</a>';
    $qxstr='';
	$tmp_arr['ttr'].='<tr>

						<td>'.$serialid.'</span></td>
                                                <td>'.$help_no.'</td>
						<td>'.$v['uname'].$realn.'</td>
                                                <td>'.formatdate($v['give_help_time']).'</td>
						<td>'.formatrmb($v['amount']).'</td>
						<td>'.formatrmb($v['benifit_amount']).'</td>
						<td>'.$yystatus.$tai.'</td>
						<td>'.$qxstr.'</td>'



                         ;
                                                
	$tmp_arr['ttr'].='</tr>';

}


$tmp_arr['tcount']=$pcount;
$tmp_arr['ttitle']=getmenu($GLOBALARR['menu'],'cunklist');
$tmp_arr['tpage']=$pagearr[0];

function admin_ck($arr){
	echo '	<h3>'.$arr['ttitle'].'</h3>
		<div class="main-r-body"><form method="get" action="?">
		<div class="main-r-item"><input type="submit" class="thabtn" value="查询"><input type="input" class="tsearch" name="quser">
		<input type="input" class="tsearch" name="bgtime">---
	    <input type="input" class="tsearch" name="edtime"><span class="paixutxt">排序<span>：'.$arr['torderby'];
	if(!empty($arr["twhereoption"])){
	echo '<span class="colortxt">账户类型：<span>'.$arr["twhereoption"];
	}
	echo '</div>';
			$questr=explode("&",$_SERVER["QUERY_STRING"]);
			for($i=0;$i<count($questr);$i++){
				$questrl=explode("=",$questr[$i]);
				if(count($questrl)>0)
				{
					if($questrl[1]!=""){
						if(!($questrl[0]=="quser")){
							echo '<input type="hidden" name="'.$questrl[0].'" value="'.$questrl[1].'">';
						}
					}
				}
			}
	echo '	</form><form method="post" action="'.geturl().'">
		<div class="main-r-item" '.$arr["styles"].'>'.$arr['toption'].'</div>	';

	echo '<table class="thealist ttab">
			<tr>
	'.$arr['tth'].'
			</tr>
			<tbody>';
	if($arr['tcount']>0){
	echo $arr['ttr'];
	}
	echo '	</tbody>					
		</table></form>';
	if($arr['tcount']==0){
	echo '<div class="nodata">暂无数据</div>';
	}else{
	echo '	<div class="pages">
			<div class="floatr">
	'.$arr['tpage'].'
			</div>
		</div>	';
	}

	echo '</div>';
}
//提供帮助 列表
if(!$_GET['detail']){
    admin_ck($tmp_arr);
    $timecha='';
    if($bgtime &&$edtime){
	    $timecha.=" and give_help_time <".$edtimes." and give_help_time>".$bgtimes."";

    }
	if(empty($_GET['option']) || $_GET['option'] == 1){
		$db->query("select SUM(amount) as am from ld_give_help where from_unixtime(give_help_time,'%Y-%m-%d')='".date('Y-m-d')."'",2);
		$heji = $db->rs;
		echo "<div style='font-size:14px;'><span>提供帮助金额合计：".$heji['am']."</span></div>";
	}
	if($_GET['option'] == 2 && !strstr(urldecode($quser),"-")){
		$db->query("select SUM(amount) as am from ld_give_help  where 1=1 $timecha",2);
		$heji = $db->rs;
		echo "<div style='font-size:14px;'><span>提供帮助金额合计：".$heji['am']."</span></div>";
	}
	if($_GET['option'] == 2 && strstr(urldecode($quser),"-")){
		$db->query("select SUM(amount) as am from ld_give_help where from_unixtime(give_help_time,'%Y-%m-%d')='".urldecode($quser)."'",2);
		$heji = $db->rs;
		echo "<div style='font-size:14px;'><span>提供帮助金额合计：".$heji['am']."</span></div>";
	}
	if($_GET['option'] == 3){
		$db->query("select SUM(amount) as am from ld_give_help where `status`=0",2);
		$heji = $db->rs;
		echo "<div style='font-size:14px;'><span>提供帮助金额合计：".$heji['am']."</span></div>";
	}
	if($_GET['option'] == 4){
		$db->query("select SUM(amount) as am from ld_give_help where matched_time is not null",2);
		$heji = $db->rs;
		echo "<div style='font-size:14px;'><span>提供帮助金额合计：".$heji['am']."</span></div>";
	}
	if($_GET['option'] == 5){
		$db->query("select SUM(amount) as am from ld_give_help where `status`>0 and `status`<2   $timecha",2);
		$heji = $db->rs;
		echo "<div style='font-size:14px;'><span>提供帮助金额合计：".$heji['am']."</span></div>";
	}if($_GET['option'] == 6){
		$db->query("select SUM(amount) as am from ld_give_help where `status`=0 and `status`<3   $timecha",2);
		$heji = $db->rs;
		echo "<div style='font-size:14px;'><span>提供帮助金额合计：".$heji['am']."</span></div>";
	}
//单个提供帮助订单 详细匹配信息
}elseif($_GET['detail']==2){
		//如果取消提供帮助
		if(isset($_GET['qxid'])){
			if($_GET['qxid']<1)  msg_l("操作失败!",$GLOBALARR['curl']);
			$gid=$_GET['qxid'];
			$db->query("select status from ld_give_help where id=".$gid."",2);
			$help=$db->rs;
			if($help['status']==1){
				msg_l("该订单已经完成，无法取消!",$GLOBALARR['curl']);
				return;
			}
			$db->query("update ld_give_help set status=3 where id=".$gid,4);
			msg_l("取消成功!",$GLOBALARR['curl']);
		}
}else if($_GET['detail']==1){
    $db->query("select * from ld_give_help where uid=".$_GET["uid"]." and id=".$_GET["pdid"],2);
    if(empty($db->rs)) exit; 
    $pds=$db->rs;
    $zuofei=$pds["status"];
    $shijian=$pds["give_help_time"];
    $arrinfo=array();
	//根据提供帮助id从汇款表里选取记录
    $db->query("select * from ld_remit_list where give_help_id=".$pds["id"]." order by id asc");
    $rs=$db->rs;
	foreach ($rs as $k => $v) {
		$arrinfo[$k]["hkno"]="R".$v["deal_time"].$v['id'];
		$arrinfo[$k]["jine"]=$v["amount"];
		$arrinfo[$k]["jiaodate"]=date("Y-m-d H:i:s",$v["deal_time"]);
		$arrinfo[$k]["pdid"]=$v["id"];
		$arrinfo[$k]["img"]=$v["certificates"];
		$arrinfo[$k]["evidence_upload_time"]=$v["evidence_upload_time"];
		$arrinfo[$k]["is_finnished"]=$v["is_finnished"];
		$arrinfo[$k]["deal_time"]=$v["deal_time"];
		$arrinfo[$k]["remittee_confirm_time"]=$v["remittee_confirm_time"];
		$arrinfo[$k]["is_overdate"]=$v["is_overdate"];
		$arrinfo[$k]["get_help_name"]=$member->getgqname($v["get_help_id"]);
		$arrinfo[$k]["give_help_name"]=$member->getgpname($v["give_help_id"]);
		$arrinfo[$k]['give_help_no'] = get_order_no($v['give_help_id']);
		$arrinfo[$k]['give_help_no'] = get_help_no('give',$arrinfo[$k]["give_help_name"],$arrinfo[$k]['give_help_no']);
		$arrinfo[$k]['get_help_no'] = get_order_num($v['get_help_id']);
		$arrinfo[$k]['get_help_no'] = get_help_no('get',$arrinfo[$k]["get_help_name"],$arrinfo[$k]['get_help_no']);

		//根据id选取获得帮助记录
		$db->query("select * from ld_get_help where id=".$v["get_help_id"],2);
		$arrinfo[$k]["status"]=getstatutype($db->rs['status'],8);
		
		$us=$member->getuserinfo($db->rs["get_help_uid"]);
		$db->query("select * from ld_bank where is_default=1 and uname='".$us["uname"]."'",2);
		
		$arrinfo[$k]["bank"]=$db->rs["bankname"];
		$arrinfo[$k]["bankuser"]=$db->rs["customer_name"];
		$arrinfo[$k]["bankno"]=$db->rs["bankno"];
		$arrinfo[$k]["bankaddress"]=$db->rs["bankaddress"];
		$arrinfo[$k]["mobile"]=$us["phone"];
		$arrinfo[$k]["qq"]=$us["rgqq"];
		$arrinfo[$k]["weixin"]=$us["rgweixin"];

		//选取获得帮助的用户的介绍人（上线）
		$ldrow=$member->getldqname($v["get_help_id"]);
		
		$arrinfo[$k]["ldid"]=$ldrow["uname"];
		$arrinfo[$k]["ldmobile"]=$ldrow["phone"];
		$arrinfo[$k]["ldqq"]=$ldrow["rgqq"];
		$arrinfo[$k]["ldwexin"]=$ldrow["rgweixin"];
		//根据id取得提供帮助记录
		$db->query("select * from ld_give_help where id=".$v["give_help_id"],2);

		$us=$member->getuserinfo($db->rs["uid"]);
		$db->query("select * from ld_bank where is_default=1 and uname='".$us["uname"]."'",2);

		$arrinfo[$k]["bank1"]=$db->rs["bankname"];
		$arrinfo[$k]["bankuser1"]=$db->rs["customer_name"];
		$arrinfo[$k]["bankno1"]=$db->rs["bankno"];   
		$arrinfo[$k]["bankaddress1"]=$db->rs["bankaddress"];   
		$arrinfo[$k]["mobile1"]=$us["phone"];
		$arrinfo[$k]["qq1"]=$us["rgqq"];
		$arrinfo[$k]["weixin1"]=$us["rgweixin"];
	}
?>
<div class="right_center">>&nbsp;提供帮助配对信息</div>

<div class="indent-r-top"></div>

<div class="bt">
	<div style="float:right;padding:0px 20px;">
		<a href="javascript:history.go(-1)"  class="lbtn">返回 >></a>
	</div>&nbsp;&nbsp;
</div>
<table width="100%" border="1" style="margin-left:12px;margin-top:10px;border:1px solid #ccc" cellpadding="0" cellspacing="0" style="margin-top:5px;" class="baitab" align="center">
    <tbody>
	<?php 
	if(count($arrinfo)==0){
		if($zuofei==3){
	?>
			<tr>
				<td width="25%" valign="top" align="center" colspan="4" style="background:#552A15;font-size:16px;color:#F0E531">已取消</td>                            
			</tr>
		<?php
		}else{
		?>
            <tr>
                <td width="25%" valign="top" align="center" colspan="4" style="background:#552A15;font-size:16px;color:#F0E531">等待匹配中</td>
			</tr>
	<?php
		}
	}

foreach ($arrinfo as $k => $v) {
?>
	<tr>
		<td width="25%" valign="top" align="left" colspan="4" style="background:#E5E5E5;font-size:16px;color:blue">&nbsp;&nbsp;配对目标<?php echo $k+1?> &nbsp; &nbsp; 汇款编号：<?php echo $v['hkno']; ?></td>                            
	</tr>
		<tr>
		<td width="25%" valign="top" align="right">获得帮助编号：</td>     
		<td valign="top" width="100" align="left"><?php echo $v['get_help_no']; ?></td>
		<td width="25%" valign="top" align="right"></td>     
		<td valign="top"></td>                 
	</tr>
	<tr>
		<td width="25%" valign="top" align="right">收款人账号：</td>     
		<td valign="top" width="170" align="left">&nbsp;<?php echo $v["get_help_name"]?></td>
		<td width="25%" valign="top" align="right">收款人账户：</td>     
		<td valign="top">&nbsp;<?php echo $v['bank']?>&nbsp;</td>                            
	</tr>
	<tr>
		<td width="25%" valign="top" align="right">收款人姓名：</td>     
		<td valign="top" width="100" align="left">&nbsp;<?php echo $v['bankuser']?></td>
		<td width="25%" valign="top" align="right">收款人卡号：</td>     
		<td valign="top">&nbsp;<?php echo $v['bankno']?>&nbsp;</td>                            
	</tr>  
	<tr>
		<td width="25%" valign="top" align="right">RMB：</td>     
		<td valign="top" width="100" align="left">&nbsp;<?php echo $v['jine']?></td>
		<td width="25%" valign="top" align="right">收款人开户地址：</td>     
		<td valign="top">&nbsp;<?php echo $v['bankaddress']?>&nbsp;</td>                            
	</tr>                          
	<tr>
		<td width="25%" valign="top" align="right">收款人微信：</td>     
		<td valign="top" width="100" align="left">&nbsp;<?php echo $v['weixin']?></td>
		<td width="25%" valign="top" align="right">收款人电话：</td>     
		<td valign="top">&nbsp;<?php echo $v['mobile']?>&nbsp;</td>                            
	</tr>  
	<tr style="color:#f50">
		<td width="25%" valign="top" align="right">收款人上级帐号：</td>     
		<td valign="top" width="100" align="left">&nbsp;<?php echo $v['ldid']?></td>
		<td width="25%" valign="top" align="right">收款人上级电话：</td>     
		<td valign="top">&nbsp;<?php echo $v['ldmobile']?>&nbsp;</td>                            
	</tr>       
	<tr>
		<td style="color:#f50" width="25%" valign="top" align="right">收款人上级微信：</td>     
		<td style="color:#f50" valign="top" width="100" align="left">&nbsp;<?php echo $v['ldwexin']?></td>
		<td width="25%" valign="top" align="right"></td>     
		<td valign="top"></td>                            
	</tr>
	<tr>
		<td colspan=4 width="25%" height='15' valign="top" align="right"></td>
	</tr> 
	<tr>
		<td width="25%" valign="top" align="right">提供帮助编号：</td>     
		<td valign="top" width="100" align="left"><?php echo $v['give_help_no']; ?></td>
		<td style="color:#04AE0A" width="25%" valign="top" align="right">付款人账号：</td>     
		<td style="color:#04AE0A" valign="top"><?php echo $v['give_help_name']; ?></td>
	</tr>                    
	<tr>
		<td width="25%" valign="top" align="right" style="color:#04AE0A">付款人账户：</td>     
		<td valign="top" width="100" align="left" style="color:#04AE0A">&nbsp;<?php echo $v['bank1']?></td>
		<td width="25%" valign="top" align="right" style="color:#04AE0A">付款人姓名：</td>     
		<td valign="top" style="color:#04AE0A">&nbsp;<?php echo $v['bankuser1']?>&nbsp;</td>                            
	</tr>  
	<tr>
		<td width="25%" valign="top" align="right"  style="color:#04AE0A">付款人卡号：</td>     
		<td valign="top" width="100" align="left"  style="color:#04AE0A">&nbsp;<?php echo $v['bankno1']?>&nbsp;</td>
		<td width="25%" valign="top" align="right" style="color:#04AE0A">付款人开户地址：</td>     
		<td valign="top" style="color:#04AE0A">&nbsp;<?php echo $v['bankaddress1']?>&nbsp;</td>                            
	</tr>    
	<tr>
		<td width="25%" valign="top" align="right" style="color:#04AE0A">付款人微信：</td>     
		<td valign="top" width="100" align="left" style="color:#04AE0A">&nbsp;<?php echo $v['weixin1']?></td>
		<td width="25%" valign="top" align="right" style="color:#04AE0A">付款人电话：</td>     
		<td valign="top" style="color:#04AE0A">&nbsp;<?php echo $v['mobile1']?>&nbsp;</td>                            
	</tr>
	<tr>
		<td width="25%" valign="top" align="right">交易日期：</td>     
		<td valign="top" width="100" align="left">&nbsp;<?php echo $v['jiaodate']?></td>

		<td width="25%" valign="top" align="right">倒计时：</td>
	<?php if($v["is_finnished"]==0){
		if(empty($v["evidence_upload_time"])) 
			$time=$v["deal_time"];
		else
			$time=$v["evidence_upload_time"];
	?>
		<td valign="top">
			<div class="J_left_time<?php echo $k?> dsj" rel="<?php echo strtotime("+".$GLOBALARR["jjqkok"]." minute",$time)-time()?>" id="dsj" >&nbsp;
				<span class="s day">--</span>
				<span class="l">天</span>
				<span class="s hour">--</span>
				<span class="l">时</span>
				<span class="s min">--</span>
				<span class="l">分</span>
				<span class="s sec">--</span>
				<span class="l">秒</span>
			</div>
		</td>
		<script type="text/javascript">
			var leftTimeActInv<?php echo $k?> = null;
			jQuery(function(){
				leftTimeAct<?php echo $k?>();
			});
			function leftTimeAct<?php echo $k?>(){
				clearTimeout(leftTimeActInv<?php echo $k?>);
				$(".J_left_time<?php echo $k?>").each(function(){
					var leftTime = parseInt($(this).attr("rel"));
					if(leftTime > 0)
					{
						var day  =  parseInt(leftTime / 24 /3600);
						 var hour = parseInt((leftTime % (24 *3600)) / 3600);
						//var hour = parseInt(leftTime / 3600);
						var min = parseInt((leftTime % 3600) / 60);
						var sec = parseInt((leftTime % 3600) % 60);
						$(this).find(".day").html((day));
						//$(this).find(".day").hide();
						$(this).find(".hour").html((hour));
						$(this).find(".min").html((min));
						$(this).find(".sec").html((sec));
						leftTime--;
						$(this).attr("rel",leftTime);
					}
					else{
						$(this).css("background","none");
						$(this).html('时间已结束');
					}
				});
				
				leftTimeActInv<?php echo $k?> = setTimeout(function(){
					leftTimeAct<?php echo $k?>();
				},1000);
			}
		</script>
	<?php }?>
	</tr>          
	<tr>
		<td width="25%" valign="top" align="right">状态：</td>     
		<td valign="top" width="100" align="left">&nbsp;<?php  echo getcunstatus(array("is_finnished"=>$v["is_finnished"],"evidence_upload_time"=>$v["evidence_upload_time"],"is_overdate"=>$v["is_overdate"]));?></td>
		<td width="25%" valign="top" align="right">上传凭证：</td>     
		<td valign="top">
		<?php
			if(empty($v["img"])&&empty($v["evidence_upload_time"])&&$v["is_finnished"]==0&&$v["is_overdate"]==0){
				echo '等待上传凭证';
			}elseif(!empty($v["img"])&&empty($v["evidence_upload_time"])&&$v["is_finnished"]==0&&$v["is_overdate"]==0){
		?>
		<a href="javascript:artload1('<img src=<?php echo YUMING.'upfile/'.$v["img"]?>>');">查看上传</a>
		
		<?php    
			}elseif(empty($v["img"])&&$v["is_finnished"]==1){
		?>
		&nbsp;未上传图片
		<?php    
			}elseif(empty($v["img"])&&$v["is_finnished"]==0){
		?>
		&nbsp;未上传图片
		<?php    
			}elseif(empty($v["img"])){
		?>
		&nbsp;未上传图片
		 <?php }else{?>
		 &nbsp;<a href="javascript:artload1('<img src=<?php echo YUMING.'upfile/'.$v["img"]?>>');">查看上传</a>
		 <?php }?> 
		</td>
	</tr>
	<?php
	}?>
	</tbody>
</table>
<?php
}?>